package com.mrdeer.common.entity.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 登录表单
 */
@Data
@ApiModel(value = "小程序登录表单")
public class MiniLoginBO {

    @ApiModelProperty(value = "临时登录凭证")
    @NotNull(message = "临时登录凭证不能为空")
    private String code;

    @ApiModelProperty(value = "昵称")
    @NotNull(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty(value = "头像URL")
    @NotNull(message = "头像URL不能为空")
    private String photo;
}
